<template>
	<view class="replyLayout">
		<view class="outer">
			<view class="body">
				<comment-item></comment-item>
			</view>
			<view class="list">
				<view class="row" v-for="(index,item) in 5" :key="index">
					<comment-item :subReply="false"></comment-item>
				</view>
			</view>
			
			<view class="replayBar" @click="clickReply">
				<view class="outer">
					<view class="left">发表一条评论吧</view>
					<view class="right">
						<uni-icons type="paperplane" size="26" color="#333"></uni-icons>
					</view>
				</view>
			</view>
		</view>
	</view>
	
	<!-- 弹出内容 -->
	<uni-popup type="bottom"  :safe-area="false" ref="commentPopup">
		<comment-reply></comment-reply>
	</uni-popup>
	
</template>

<script setup>
import { ref } from 'vue';
const commentPopup = ref()
	
// 点击恢复
const clickReply = ()=>{ 
	commentPopup.value.open()
}




</script>

<style scoped lang="scss">
	.replyLayout{
		.outer{
			.body{
				padding: 30rpx 0;
				border-bottom: 12rpx solid #f7f7f7;
			}
			
			.list{
				.row{
					border-bottom: 1rpx solid #f7f7f7;
					
				}
				
			}
			
			.replayBar{
				padding: 30rpx;
				border-top: 1rpx solid #e4e4e4;
				background: #fff;
				 .outer{
					 display: flex;
					 align-items: center;
					 justify-content: space-between;
					 .left{
						 flex: 1;
						 height: 70rpx;
						 background: #f7f7f7;
 						 border-radius: 70rpx;
						 padding: 0 20rpx;
						 display: flex;
						 align-items: center;
						 color: #999;
						 margin-right: 30rpx;
					}
				 }
			}
		}
		
	}
</style>
